package cn.aitrox.ry.service.oss.interceptor;

import org.springframework.stereotype.Component;

@Component
public class OssKeyThreadLocal {

    private ThreadLocal<String> ossKeyThreadLocal = new ThreadLocal<>();

    public String getOssKey() {
        return ossKeyThreadLocal.get();
    }

    public void setOssKey(String ossKey) {
        ossKeyThreadLocal.set(ossKey);
    }

    public void clear() {
        ossKeyThreadLocal.remove();
    }

}
